package com.woniu.controller;

import com.woniu.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 杨光 微信号:tolryg
 * @time 11:52
 */

@RestController
@CrossOrigin
public class UsersController {

    @Autowired
    private UsersService usersService;

    @RequestMapping("findUser")
    public boolean findUser(String userCode, String userPassword) {
        return usersService.findUser(userCode, userPassword);
    }
}
